package com.yunchang.springboot.models.base;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.yunchang.springboot.base.Column;
import com.yunchang.springboot.base.Id;
import com.yunchang.springboot.base.Table;

import java.io.Serializable;

import lombok.Data;

/**
 * base_asin_sku_relation
 *
 * @author Administrator
 * @date 2020-06-23 10:55:34
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Table("base_asin_sku_relation")
public class BaseAsinSkuRelation implements Serializable {
    /**
     * ID,系统自增
     */
    @Id("id")
    private Integer id;

    /**
     * 商品页唯一标识
     */
    @Column("asin")
    private String asin;

    /**
     * SKU基础表ID
     */
    @Column("sku")
    private Integer sku;

    /**
     * 创建人 ID
     */
    @Column("add_user")
    private String addUser;

    /**
     * 创建时间
     */
    @Column("add_time")
    private String addTime;

    /**
     * 修改人 ID
     */
    @Column("mod_user")
    private String modUser;

    /**
     * 修改时间
     */
    @Column("mod_time")
    private String modTime;

    /**
     * 排序字段，注意是整型
     */
    @Column("order_tag")
    private Integer orderTag;

    /**
     * 备注信息
     */
    @Column("remarks")
    private String remarks;

    private static final long serialVersionUID = 1L;

    public BaseAsinSkuRelation(String asin, Integer sku, String addUser, String addTime, String modUser, String modTime) {
        this.asin = asin;
        this.sku = sku;
        this.addUser = addUser;
        this.addTime = addTime;
        this.modUser = modUser;
        this.modTime = modTime;
    }

    public BaseAsinSkuRelation() {}
}